class Student{
    private String name = "nihao";
    public int age = 19;
    public Student(){
        System.out.println("Student()");
    }
    private Student(String name,int age){
        this.name = name;
        this.age = age;
        System.out.println("Student(String,name)");
    }
    public void sleep(){
        System.out.println("睡觉");
    }
    private void eat(){
        System.out.println("吃");
    }
    private void fun(String str){
        System.out.println(str);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class Test {
    public static void main(String[] args) {
        Class<Student> stuClass1 = Student.class;
        Student student = new Student();
        Class stuClass2 = student.getClass();
        Class stuClass3 = null;
        try {
            stuClass3 = Class.forName("Student");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        System.out.println(stuClass1 == stuClass2);
        System.out.println(stuClass2 == stuClass3);
        System.out.println(stuClass1 == stuClass3);
    }
}
